{/*
* @author PSI
* @copyright 2015 - present
* @license GPL v3
*/}
<layout name="layout" />

<script src="{$uri}Public/Scripts/PSI/Home/Bizlog/MainForm.js?dt={$dtFlag}" type="text/javascript"></script>

<script src="{$uri}Public/Scripts/PSI/Home/User/UserField.js?dt={$dtFlag}" type="text/javascript"></script>

<!-- Hiprint -->
<link href="{$uri}Public/hiprint/css/hiprint.css" rel="stylesheet" />
<link href="{$uri}Public/hiprint/css/print-lock.css" rel="stylesheet" />
<link href="{$uri}Public/hiprint/css/print-lock.css" media="print" rel="stylesheet">
<!-- jQuery (hiprint 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="{$uri}Public/hiprint/plugins/jq-3.31.js"></script>
<!-- 加载 hiprint 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<!-- polyfill.min.js解决浏览器兼容性问题v6.26.0-->
<script src="{$uri}Public/hiprint/polyfill.min.js"></script>
<!-- hiprint 核心js-->
<script src="{$uri}Public/hiprint/hiprint.bundle.js"></script>
<!-- 条形码生成组件-->
<script src="{$uri}Public/hiprint/plugins/JsBarcode.all.min.js"></script>
<!-- 二维码生成组件-->
<script src="{$uri}Public/hiprint/plugins/qrcode.js"></script>
<!-- 调用浏览器打印窗口helper类，可自行替换-->
<script src="{$uri}Public/hiprint/plugins/jquery.hiwprint.js"></script>

<script>
  PCL.onReady(() => {
    const app = PCL.create("PSI.App", {
      userName: "{$loginUserName}",
      productionName: "{$productionName}",
      appHeaderInfo: {
        title: "{$title}"
      }
    });

    app.add(PCL.create("PSI.Home.Bizlog.MainForm", {
      unitTest: "{$canUnitTest}"
    }));
  });
</script>
